package com.hz.ruoyilgorder.api.service;

import com.hz.rouyigonggong.domain.LgSellerInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @version 1.0
 * @Author yzw
 * @Date 2025/3/10 19:33
 * @注释
 */
@FeignClient(value = "ruoyi-seller",path = "/api")
public interface LgSellerInfoService {

    @PostMapping("/insertSellerInfo")
    public int insertSellerInfo(@RequestBody LgSellerInfo lgSellerInfo);

    @GetMapping("/getSellerInfoIdBySellerIdAndGoodsId")
    public LgSellerInfo getSellerInfoIdBySellerIdAndGoodsId(@RequestParam("sellerId")Integer sellerId,
                                                            @RequestParam("goodsId") Integer goodsId);
    /**
     * @Description: 通过 lgSellerInfoid修改lgSellerInfo
     * @Param: [lgSellerInfo]
     * @return: int
     * @Author: grx
     * @Date: 17:25 2025/3/10
     */

    @PostMapping("/updateSellerInfo")
    public int updateSellerInfo(@RequestBody LgSellerInfo lgSellerInfo);

}
